*** TABLE 1 MODELS ***

#delimit ;

xi: quietly logit benefdummy patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull nbi lruralpop, cl(centro);
estimates store logitstategov1;
xi: quietly logit benefdummy patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull nbi lruralpop timeapp, cl(centro);
estimates store logitstategov2;
xi: quietly logit benefdummy patriotflag patchavezstate08 chavezgov2008 opositor oppchavezstate08 misionfull nbi lruralpop timeapp i.tipo_doc, cl(centro);
estimates store logitstategov3;
xi: quietly clogit benefdummy patriotflag patchavezstate08 opositor oppchavezstate08 misionfull, group(centro) cl(centro);
estimates store logitstategov4;
xi: quietly clogit benefdummy patriotflag patchavezstate08 opositor oppchavezstate08 timeapp misionfull, group(centro) cl(centro);
estimates store logitstategov5;
xi: quietly clogit benefdummy patriotflag patchavezstate08 opositor oppchavezstate08 timeapp misionfull i.tipo_doc, group(centro) cl(centro);
estimates store logitstategov6;

estout logitstategov*, style(tex) starlevels(* .10 ** .05 *** .01) cells(b(star fmt(3)) se(par fmt(3))) 
mlabels("1" "2" "3" "4" "5")  keep(nbi lruralpop opositor patriotflag misionfull patchavezstate08 oppchavezstate08 chavezgov2008 timeapp _Itipo_doc_2 _Itipo_doc_3 _Itipo_doc_4)
order(patchavezstate08 patriotflag oppchavezstate08 opositor chavezgov2008 misionfull lruralpop nbi timeapp _Itipo_doc_2 _Itipo_doc_3 _Itipo_doc_4)
varlabels(opositor "Opposition in Opposition State" patriotflag "Loyalist in Opposition State" swing "Swing in Opposition" age "Age" lvotantes "log(Voters)" nno "Pct. No" misionfull "Misiones" abstencion "Abstention"
patchavezstate08 "Loyalist in Chavez State" chavezgov2008 "Chavez Governor Baseline" oppchavezstate08 "Opposition in Chavez State" swingchavezstate08 "Swing in Chavez" _Itipo_doc_2 "Carta Agraria" _Itipo_doc_3 "Permanency Rights" _Itipo_doc_4 "Title Registration"
_Itipo_doca2 "Carta Agraria" _Itipo_doca3 "Permanency Rights" _Itipo_doca4 "Title Registration" timeapp "Time in Application" nbi "Poverty Rate" rural_pc_muni "Percent Rural" lruralpop "log(Rural Population)" lruralvoters "log(Rural Voters)")
stats(N, labels("Observations") fmt(0 0 3));

